package com.linchuansi.project;

import com.linchuansi.framework.AnnotationApplicationContext;
import com.linchuansi.service.UserService;

import java.lang.reflect.Constructor;

public class DemoMain {
    public static void main(String[] args) {
        /*AnnotationApplicationContext annotationApplicationContext=new AnnotationApplicationContext(AppConfig.class);
        UserService userService = (UserService)annotationApplicationContext.getBean("userService");
        System.out.println(userService);
        userService.test();*/
        Constructor<?>[] constructors = UserService.class.getConstructors();
        for(Constructor<?> constructor:constructors)
        {
            System.out.println(constructor);
        }


    }
    public void te()
    {
        System.out.println("te");
        AppConfig appConfig=new AppConfig();
        for(int i=0;i<100;i++)
        {
            appConfig=null;
        }
        for(int i=0;i<100;i++)
        {
            appConfig=new AppConfig();
        }
    }
}